#include "labels.hpp"

Labels::Labels()
{
    _Title = "Wykres";
    _xLabel = "X";
    _yLabel = "Y";
    _zLabel = "Z";
    _xMin = "Auto";
    _xMax = "Auto";
    _yMin = "Auto";
    _yMax = "Auto";
    _zMin = "Auto";
    _zMax = "Auto";
}

Labels::Labels(string Title, string xLabel, string yLabel, string zLabel,
               string xMin, string xMax, string yMin, string yMax,
               string zMin, string zMax)
{
    _Title = Title;
    _xLabel = xLabel;
    _yLabel = yLabel;
    _zLabel = zLabel;
    _xMin = xMin;
    _xMax = xMax;
    _yMin = yMin;
    _yMax = yMax;
    _zMin = zMin;
    _zMax = zMax;
}

void Labels::addLabel(string x, string y, string text)
{
    struct Label Lab;
    Lab._x=x;
    Lab._y=y;
    Lab._text=text;

    this->_Labels.push_back(Lab);
}

void Labels::clearLabel()
{
    _Title = "Wykres";
    _xLabel = "X";
    _yLabel = "Y";
    _zLabel = "Z";
    _xMin = "Auto";
    _xMax = "Auto";
    _yMin = "Auto";
    _yMax = "Auto";
    _zMin = "Auto";
    _zMax = "Auto";
}
